package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.PositionMenuMapper;
import com.ktgj.customer.domain.PositionMenu;
import com.ktgj.customer.service.IPositionMenuService;

/**
 * 职位菜单中间Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-15
 */
@Service
public class PositionMenuServiceImpl implements IPositionMenuService 
{
    @Autowired
    private PositionMenuMapper positionMenuMapper;

    /**
     * 查询职位菜单中间
     * 
     * @param id 职位菜单中间ID
     * @return 职位菜单中间
     */
    @Override
    public PositionMenu selectPositionMenuById(Long id)
    {
        return positionMenuMapper.selectPositionMenuById(id);
    }

    /**
     * 查询职位菜单中间列表
     * 
     * @param positionMenu 职位菜单中间
     * @return 职位菜单中间
     */
    @Override
    public List<PositionMenu> selectPositionMenuList(PositionMenu positionMenu)
    {
        return positionMenuMapper.selectPositionMenuList(positionMenu);
    }

    /**
     * 新增职位菜单中间
     * 
     * @param positionMenu 职位菜单中间
     * @return 结果
     */
    @Override
    public int insertPositionMenu(PositionMenu positionMenu)
    {
        return positionMenuMapper.insertPositionMenu(positionMenu);
    }

    /**
     * 修改职位菜单中间
     * 
     * @param positionMenu 职位菜单中间
     * @return 结果
     */
    @Override
    public int updatePositionMenu(PositionMenu positionMenu)
    {
        return positionMenuMapper.updatePositionMenu(positionMenu);
    }

    /**
     * 批量删除职位菜单中间
     * 
     * @param ids 需要删除的职位菜单中间ID
     * @return 结果
     */
    @Override
    public int deletePositionMenuByIds(Long[] ids)
    {
        return positionMenuMapper.deletePositionMenuByIds(ids);
    }

    /**
     * 删除职位菜单中间信息
     * 
     * @param id 职位菜单中间ID
     * @return 结果
     */
    @Override
    public int deletePositionMenuById(Long id)
    {
        return positionMenuMapper.deletePositionMenuById(id);
    }
}
